<?php

/**
 * Production configuration
 * Usage:
 * - Online website
 * - Production DB
 * - Standard production error pages (404, 500, etc.)
 */
 
$dirname = dirname(__FILE__);

return array(
	// Set yiiPath (relative to Environment.php)
	'yiiPath'=>'/xampp/yii/framework/yii.php',
	'yiicPath'=>'/xampp/yii/framework/yiic.php',
	'yiitPath'=>'/xampp/yii/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>false,
	'yiiTraceLevel'=>0,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the specific Web application configuration for this mode.
	// Supplied config elements will be merged into the main config array.
	'configWeb'=>array(
		'theme'=>'classic',
//		'language'=>'id',
		// Application components
		'components'=>array(
			// Database
			'db'=>array(
				'connectionString'=>"sqlite:$dirname/../data/production.db",
			),
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					// Send errors via email to the system admin
					array(
						'class'=>'EmailLogRoute',
						'levels'=>'error, info',
						'filter'=>array(
							'class'=>'ext.filters.LogFilter',
							'ignoreCategories'=>array(
								'exception.CHttpException.*',
							),
						),
						'emails'=>'andy.julot@gmail.com',
					),
				),
			),
		),
		'modules'=>array(
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
		// Application components
		'components'=>array(
			// Application Log
			'log'=>'inherit',
		),
	),
);
